<?php
//应用程序入口
require dirname ( dirname ( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'bootstrap.php';
if (isset ( $_GET ['url'] ) && $_GET ['url'] === 'favicon.ico') {
	return;
} else {
	//the request resouce
	$url = isset ( $_GET ['url'] ) ? $_GET ['url'] : (isset ( $_SERVER ['PATH_INFO'] ) ? ltrim ( $_SERVER ['PATH_INFO'], '/' ) : '');
	$url = "/{$url}";
	$dispatcher = new Dispatcher ();
	$dispatcher->dispatch ( $url );
}
?>